import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;

public class Demo2 {
    public static void main(String[] args) {
        try(InputStream inputStream=new FileInputStream("./text.txt")){
              byte[] buffer=new  byte[1024];
              int n=  inputStream.read(buffer);
              inputStream.read();
              for(int i=0;i<n;i++){
                  System.out.printf("0x%x\n",buffer[i]);
              }
        }catch (IOException e){
            e.printStackTrace();
        }
    }
}
